from django.shortcuts import render
from rest_framework.generics import ListAPIView
from rest_framework.response import Response
from app.models import NewsModel
from app.ser import NewsSerializeras
# Create your views here.

class NewsView(ListAPIView):
    queryset = NewsModel.objects.all()
    serializer_class = NewsSerializeras


